<script type="text/javascript">
    function search(obj) {
        $('tr').hide().filter(":contains('" +($(obj).val()) + "')").show();
    }
  </script>
<script>
$(document).ready(function(){
	$("#postip").click(function(){
		$("#res").html('<img src=/bootstrap/style/loading.gif></img>')
		$.post("/cgi-bin/DDIP.py",{
			textcontent:$("#textcontent").val(),
		},
		function(data,status){
			$("#res").html(data);
		});
	});
});
</script>
</script>
<div class="row">
<div class="col-md-3" > 
<div class="form-group">
<label for="textcontent">在输入框输入要核对的IP</label>
<textarea  class="form-control" id="textcontent"   rows="35">
</textarea>
<br/>
<button id="postip"   class="btn btn-default"   > 提交</button>
</div>
</div>
<div class="col-md-1">
<div class="btn-group-vertical">
<button  type="button" class="btn btn-default" onclick="method5('mytab')">导出Excel</button>
<button  type="button" class="btn btn-default" value="不存在" onclick="search(this)">显示新增</button>
<button  type="button" class="btn btn-default" onclick="$('tr').show();" >显示全部</button>
</div>
</div>
<div class="col-md-7"> 

<br>
<div id="res" style="text-align: center;">
结果显示区域
</div>
</div>
</div>